package com.sc.nft.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.google.common.collect.Maps;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import org.web3j.abi.datatypes.Int;

import java.util.Map;
@Getter
@AllArgsConstructor
public enum ApplicationRequirementUpOrDownEnum {
    USER_WORK_ROOM(1, "社区网点"),
    CITY(2, "城市服务中心");


    /**
     * 编码
     */
    @EnumValue
    private Integer code;

    /**
     * 描述
     */
    private String describe;


    public static Map<String,String> getAll() {
        Map<String,String> map = Maps.newLinkedHashMap();
        for (ApplicationRequirementUpOrDownEnum value : ApplicationRequirementUpOrDownEnum.values()) {
            map.put(value.name(), value.getDescribe());
        }
        return map;
    }
}
